const { auth, hasAdminPermission } = require("../middleware/auth.middleware");
const Router = require("koa-router");
const router = new Router({ prefix: "/dictionary" });

const {
  addDictionary,
  getDictionary,
  updateDictionary,
  deleteDictionary,
} = require("../controller/general/dictionary.controller");

router.post("/add-dictionary", auth, hasAdminPermission, addDictionary);
router.get("/get-dictionary", getDictionary);
router.put("/update-dictionary", auth, hasAdminPermission, updateDictionary);
router.delete("/delete-dictionary", auth, hasAdminPermission, deleteDictionary);
module.exports = router;
